Latest Questions

Addig User And Role to my UserRole table - Never used column name is missing

I am trying to add Role to my User and store the UserID and the RoleID in the UsersRoles table. var userRole = await _roleManager.FindByNameAsyn

How do I provide environmental variable with my custom Cloud Foundry buildpack?

I have extra simple custom sidecar buildpack. All it does in /bin/supply is downloading and untarring to $DEPS_DIR/$DEPS_IDX/mylibrary certain dependency librar

PHP Composer with ZScaler

I'm trying to download the phpspreadsheet library for php 7.4 but I'm facing trouble with certificates. In my company, ZScaler is used to inspect network and it

How do I call the functions for when I create the character class - Python - This is for a quiz game but using a tree traversal

#here I want to define the self.__tree but I am not sure how to do so, how would I create the tree? oijh0ij0ihoihihoihou

Android Unit test fails with java.lang.IllegalArgumentException: INTERNET permission is required

I am trying to set up unit tests for my application. But I am facing an issue with Segment This is my test class: @RunWith(RobolectricTestRunner::class) @Config

How to get the Version Number of Microsoft Office from its Build number in Powershell

I read on my Windows based systems (via Remote Powershell) what is installed on their computers. This creates a report. I am having some difficulties looking in

helm - provide file as a cert

I am defining the path to the certs: root path certs (folder) templates (folder) value.yaml tlsSecret: enabled: true secrets: - name: ca-secret ke

Input 0 of layer "conv1d_5" is incompatible with the layer: expected min_ndim=3, found ndim=1. Full shape received: (None,) when predicting new values

I have trained a VAE and now I am trying to predict new data using this dataset. I have taken the predict code line from this tutorial. However, when I run the

How should I go about writing code that runs on a schedule that will run on multiple containers without race conditions?

I'm wanting to write a service in nestjs that polls another service on a schedule. The problem is that if I have multiple containers how can I make sure one and

unhiding a h1 tag on the clic of a button

I am creating a to-do list. I want to unhide a h1 tag on the click of a button. But it is not working. could anyone take a look at this code. let a; // #create

SetState not updating the value in react js functional component

in a functional component i need to show the message to user that email is being sent i am changing the html element text by set state here is the code const [v

Shibboleth IDP with ADB2C integration

We have a requirement to configure Shibolleth as a SAML IDP to ADB2C Service Provider. Does anyone have any links or working examples? I found a reference on co

Does the semantics of java volatile guarantee that wrong results will not appear? (Two threads write first and then read)

volatile x=y=0 Thread1 x=1 r1=y Thread2 y=1 r2=x r1 and r2 are local variables Question1: Is the result of r1==r2==0 illegal and does not appear? All stateme

Firestore Recyclerview item doesn't update when doing add, update, delete data

I have a problem when doing add, update, and delete with my firestore recyclerview. The problem is my recyclerview item updating automatically when doing add, u

How to avoid poorly optimized code for Fortran array pointers?

I get rather poorly optimized assembly with gfortran 11.2 when using array pointers, even in seemingly very simple cases. For example, the optimized code (https

How to do a Kfold cross validation by taking the samples into account

I have a numeric matrix to classify (45 rows, 102 columns), the first column represents the classes (0 and 1), the second represents the samples, the other colu

Why 255 in ip address can't be host address?

Can I have IP address like this - 145.234.255.255 /12 ? Host id is 10101111111111111111 (720895) and we see, that all bits are not one, in order to it will be

How to re-render react-table in .js when data changes in another .js

I am new to react-table and trying to re-render a react-table when data supplied to it changes. Is there anyway to do so? I have tried using useEffect() with no

CK Editor in Dynamics 365

Image In Dynamics 365, under Knowledge article for Content field, I implemented Rich Text Editor control in order to have plugins which are defined in document

Json decode Instance of Item

I'm trying to save a list of object into a shared preference for easy storage. I'm getting the error [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exce

Regarding Merging classes in Image Segmentation (Python)

I'm Trying to implement Domain adaptation of Segmentation of Satellite Images From one set of images to another images. To align the classes in two domains , I

Update a bot variable with user input created in boot framework

I created in bot composer a new multiple choice for a user to select, given the user answer i want to update or set the value of a variable created in Power Vir

Stack balanced Parentheses build log show :- Process terminated with status -1073741510 (0 minute(s), 2 second(s))

When I try to implement parenthesis problem using stack (array representation) it showing above problem. Here I use dynamic memory allocation in array. When I

Extract indices of certain values from a list in python

Suppose, I have a list [0.5,1,1.5,2,2.5,3,3.5,4,4.5], now I would like to extract the indices of a list [1.5,2.5,3.5,4.5], which is a subset of that list.

calculate compound profit in javascript

I have to calculate compound profit. for example, I have $100, increasing 10% monthly, and I have to calculate the total profit for 12 months. And I need a prof

Parse Huge xml file in spring boot and load to oracle

I have a requirement to load huge xml file having 1 million records and load to the oracle table. Each record has starting and end tags as and there are many a

AWS SAM "No response from invoke container for" wrong function name

I've debugged my application, and identified a problem. I have 2 REST API Gateway, and it seems like since they both bind on the same endpoint, the first one wi

Creating a PDF from WKWebView in macOS 11.+

As WKWebView contents can finally be printed out in macOS 11+, I'm trying to replace old WebView dependencies. However, with the HTML correctly loaded in WKWebV

Github Action won't run until manually enabled

I need to create a bunch of repositories programmatically using from a local template. I have a .github/workflows/build.yml with on: [push]. However, Github Act